<main>
  <ul class="custom-goods">
    <li v-for="(item, index) in goods" :key="index">
      <router-link :to="{path:'/goodsDetail',query:{id:item.id}}" class="custom-goods-item">
        <div class="custom-img">
          <img :src="item.imgSrc" :alt="item.name">
          <span class="tag tag-hollow tag-h" v-if="item.tagColor">{{item.tagColor}}</span>
        </div>
        <div class="custom-txt">
          <span v-for="(tag,index) in item.tags" :key="index" :class="['tag',tag.class]">{{tag.name}}</span>
          <p class="custom-name">{{item.name}}</p>
          <p class="custom-descript" v-if="item.descript">{{item.descript}}</p>
          <p class="custom-price">{{item.price,item.yuan | priceFomat(item.price,item.yuan)}}</p>
          <span class="tag tag-hollow" v-if="item.tagNew">{{item.tagNew}}</span>
        </div>
      </router-link>
    </li>
    <li v-if="showAll">
      <a href="" class="custom-show-all">
        <div class="custom-text">查看全部</div>
      </a>
    </li>
    <li v-if="showMore">
      <div class="custom-show-more" @click="otherGoodsList(moreRouter)">
        <div class="custom-text">
          <p>更多{{goods.title}}</p>
          <i class="iconfont icon-xiangyou2"></i>
        </div>
      </div>
    </li>
  </ul>
</main>
